﻿
namespace sinetd
{
    /// <summary>
    /// Provides functionality to send or receive messages.
    /// </summary>
    public interface IConnectionIO
    {
        /// <summary>
        /// Sends message.
        /// </summary>
        /// <param name="msg">The message</param>
        void Send(string msg);
        /// <summary>
        /// Receives message.
        /// </summary>
        /// <returns>The message.</returns>
        string Recv();
    }
}
